package com.diadraw.extensions.dropbox
{
	/**
	 * @author Radoslava Leseva, Radoslava.Leseva@diadraw.com
	 * http://diadraw.com
	 * http://ideadrawapp.com
	 * 
	 * */
	
	
	import flash.events.Event;
	
	public class NativeDropboxLinkEvent extends Event
	{
		public static const DROPBOX_LINKED 			: String = "DROPBOX_EXT_LINKED";
		public static const DROPBOX_UNLINKED 		: String = "DROPBOX_EXT_UNLINKED";
		public static const DROPBOX_LINK_CANCELLED 	: String = "DROPBOX_EXT_LINK_CANCELLED";
		
		
		public function NativeDropboxLinkEvent( 
			_type 			: String, 
			_token			: String = null,
			_tokenSecret	: String = null,
			_userId			: String = null,
			_bubbles 		: Boolean = false, 
			_cancelable 	: Boolean = false )
		{
			super( _type, _bubbles, _cancelable );
			
			m_token = _token;
			m_tokenSecret = _tokenSecret;
			m_userId = _userId;
		}
		
		
		public function get userId() : String
		{
			return m_userId;
		}
		
		
		public function get token() : String
		{
			return m_token;
		}
		
		
		public function get tokenSecret() : String
		{
			return m_tokenSecret;
		}
		
		
		private var m_userId 		: String = null;
		private var m_token 		: String = null;
		private var m_tokenSecret 	: String = null;
	}
}